package com.xnew.userOrg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnew.bean.common.SysOrgUserInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SysOrgUserMapper extends BaseMapper<SysOrgUserInfo> {

	@Delete("update  el_sys_org_user_info " +
			"set org_status_code = #{status} " +
			"WHERE org_id = #{orgId} ")
	void updataByStatus(@Param("orgId") String orgId,@Param("status") String status);
	List<SysOrgUserInfo> selectAll(@Param("params") Map<String, Object> param);

	List<Map<String, String>> getCurrentLoginInfo(String orgUserNo);

	List<SysOrgUserInfo> queryOrgUserRoleList(@Param("arId") String arId,@Param("orgUserName") String orgUserName);

    SysOrgUserInfo selectOrgByOrgCode(String orgId,String orgCode);
	SysOrgUserInfo selectOrgByAoiOrgNo(String orgId,String aoiOrgNo);
	SysOrgUserInfo selectOrgByOrgCertifNo(String orgId,String orgCertifNo);
}